package com.cskaoyan.bytestream;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @description: 构造方法
 * @author: songtao@cskaoyan.onaliyun.com
 **/

public class Demo {
    public static void main(String[] args) throws IOException {
        // 第一种 File 对象
        File file = new File("a.txt");
        FileOutputStream outputStream = new FileOutputStream(file);
        // 第二种 String name  文件名
        FileOutputStream outputStream1 = new FileOutputStream("b.txt");
    }
}
